package com.haina.shop.mapper;

import com.github.pagehelper.Page;
import com.haina.shop.domain.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 48077
* @description 针对表【tz_notice】的数据库操作Mapper
* @createDate 2024-07-31 18:34:29
* @Entity com.haina.shop.domain.Notice
*/
public interface NoticeMapper extends BaseMapper<Notice> {
    /**
     * 获取所有置顶公告列表信息
     * @return
     */
    @Select("select * from yami_shops.tz_notice where is_top=1")
    List<Notice> selectByIsTop();
    /**
     * 获取所有公告列表信息
     * @return
     */
    @Select("select * from yami_shops.tz_notice")
    Page<Notice> page();
}




